package dm;

/**
 * <p>Title: Domain Model Generator</p>
 *
 * <p>Description: Automatic generation of a domain model</p>
 *
 * <p>Copyright: Copyright (c) 2011</p>
 *
 * <p>Company: UTA</p>
 *
 * @author David Kung
 * @version 1.0
 */
public class AllOther
    extends DMComp {
  public AllOther() {
    super();
  }

  public boolean checkNMark(Segment s) {
    if (s.content.trim().length() == 0)
      s.content = " ";
    else
      if (s.content.trim().compareTo(".")==0)
        s.content=".";
    else
      s.content = markIt(s.content);
    s.skip = true;
    return false;
  }

  public String markIt(String s) {
    return "/* " + s + " */";
  }
}
